//
//  MCActionSearchVc.swift
//  MCBodyBuildingPro
//
//  Created by Renlvshijie on 2023/5/17.
//

import UIKit
import SnapKit

class MCActionSearchVc: MCBaseVc {
    
   lazy var searchInfoController:QMUISearchController = {
        let searchInfo:QMUISearchController = QMUISearchController.init(contentsViewController: self)
        searchInfo.searchResultsDelegate = self
        searchInfo.searchBar.qmui_usedAsTableHeaderView = true
        return searchInfo
    }()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.addSubview(searchInfoController.searchBar)
        
        
    }
    
}

extension MCActionSearchVc:QMUISearchControllerDelegate {
    func searchController(_ searchController: QMUISearchController!, updateResultsForSearch searchString: String!) {
        
    }
    
    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 1
    }
    
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell:UITableViewCell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
        return cell
        
    }
    
    
}
